﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WatiN.Core;

namespace UserStoryTrackerDemo.UnitTests.Watin
{
	[TestClass]
	public class WatinTests
	{
		[TestMethod]
		public void SearchForWatiNOnGoogle()
		{
			using (var browser = new IE("http://www.google.com"))
			{
				browser.TextField(Find.ByName("q")).TypeText("WatiN");
				browser.Button(Find.ByName("btnG")).Click();
				
				Assert.IsTrue(browser.ContainsText("watin"));
			}
		}
	}
}
